<?php /* Smarty version Smarty-3.1.18, created on 2015-12-21 15:52:47
         compiled from "/Applications/MAMP/htdocs/ccgift/cc/Admin/View/Gift/config.html" */ ?>
<?php /*%%SmartyHeaderCode:6765096305677afcf5a3a32-19299140%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5b55dbac96f238c2efe90bc45889a2bf9761eb07' => 
    array (
      0 => '/Applications/MAMP/htdocs/ccgift/cc/Admin/View/Gift/config.html',
      1 => 1450514512,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6765096305677afcf5a3a32-19299140',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'info' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5677afcf765912_14940517',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5677afcf765912_14940517')) {function content_5677afcf765912_14940517($_smarty_tpl) {?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			<div class="am-u-md-6 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-intro" class="am-u-sm-3 am-form-label">次数类型</label>
						<div class="am-u-sm-9">
							<div class="am-btn-group">
								<label class="am-btn am-btn-xs">
									<input type="radio" name="count_type" value="0" <?php if ($_smarty_tpl->tpl_vars['info']->value['count_type']==0||$_smarty_tpl->tpl_vars['info']->value['count_type']=='') {?>checked="checked"<?php }?>> 不限次数
								</label>
								<label class="am-btn am-btn-xs">
									<input type="radio" name="count_type" <?php if ($_smarty_tpl->tpl_vars['info']->value['count_type']==1) {?> checked="checked"<?php }?> value="1"> 每天游戏次数
								</label>
								<label class="am-btn am-btn-xs">
									<input type="radio" name="count_type" <?php if ($_smarty_tpl->tpl_vars['info']->value['count_type']==2) {?>checked="checked"<?php }?> value="2"> 一共游戏次数
								</label>
							</div>
						</div>
					</div>
					<div class="am-form-group yf-game-count" <?php if ($_smarty_tpl->tpl_vars['info']->value['count_type']>0) {?><?php } else { ?>style="display: none;"<?php }?>>
						<label for="user-name" class="am-u-sm-3 am-form-label">游戏次数</label>
						<div class="am-u-sm-9">
							<input type="text" name="game_count" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['game_count'];?>
" placeholder="请输入游戏次数">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-intro" class="am-u-sm-3 am-form-label">是否有分享规则</label>
						<div class="am-u-sm-9">
							<div class="am-btn-group">
								<label class="am-btn am-btn-xs">
									<input type="radio" name="is_share" value="0" <?php if ($_smarty_tpl->tpl_vars['info']->value['is_share']==0||$_smarty_tpl->tpl_vars['info']->value['is_share']=='') {?>checked="checked"<?php }?>> 没有
								</label>
								<label class="am-btn am-btn-xs">
									<input type="radio" name="is_share" <?php if ($_smarty_tpl->tpl_vars['info']->value['is_share']==1) {?> checked="checked"<?php }?> value="1"> 有
								</label>
							</div>
						</div>
					</div>
					<div class="yf-share-type" <?php if ($_smarty_tpl->tpl_vars['info']->value['is_share']!=1) {?>style="display: none;"<?php }?>>
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label">分享后得到次数</label>
							<div class="am-u-sm-9">
								<input type="text" name="share_count" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['share_count'];?>
" placeholder="请输入次数">
							</div>
						</div>	
						<div class="am-form-group">
							<label for="user-intro" class="am-u-sm-3 am-form-label">分享规则类型</label>
							<div class="am-u-sm-9">
								<div class="am-btn-group">
									<label class="am-btn am-btn-xs">
										<input type="radio" name="share_type" value="1" <?php if ($_smarty_tpl->tpl_vars['info']->value['share_type']==1||$_smarty_tpl->tpl_vars['info']->value['share_type']=='') {?>checked="checked"<?php }?>> 分享就能获得
									</label>
									<label class="am-btn am-btn-xs">
										<input type="radio" name="share_type" <?php if ($_smarty_tpl->tpl_vars['info']->value['share_type']==2) {?> checked="checked"<?php }?> value="2"> 分享且用户点击完成游戏后获得
									</label>
								</div>
							</div>
						</div>
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label">最大分享次数</label>
							<div class="am-u-sm-9">
								<input type="text" name="max_share" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['max_share'];?>
" placeholder="请输入最大分享次数">
							</div>
						</div>					
					</div>
					<div class="am-form-group">
						<label for="user-intro" class="am-u-sm-3 am-form-label">加分规则</label>
						<div class="am-u-sm-9">
							<div class="am-btn-group">
								<label class="am-btn am-btn-xs">
									<input type="radio" name="add_type" value="0" <?php if ($_smarty_tpl->tpl_vars['info']->value['add_type']==0||$_smarty_tpl->tpl_vars['info']->value['add_type']=='') {?>checked="checked"<?php }?>> 不开启
								</label>
								<label class="am-btn am-btn-xs">
									<input type="radio" name="add_type" <?php if ($_smarty_tpl->tpl_vars['info']->value['add_type']==1) {?> checked="checked"<?php }?> value="1"> 开启
								</label>
							</div>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-intro" class="am-u-sm-3 am-form-label">限制</label>
						<div class="am-u-sm-9">
							<div class="am-btn-group">
								<label class="am-btn am-btn-xs">
									<input type="radio" name="limit_status" value="0" <?php if ($_smarty_tpl->tpl_vars['info']->value['limit_status']==0||$_smarty_tpl->tpl_vars['info']->value['limit_status']=='') {?>checked="checked"<?php }?>> 不开启
								</label>
								<label class="am-btn am-btn-xs">
									<input type="radio" name="limit_status" <?php if ($_smarty_tpl->tpl_vars['info']->value['limit_status']==1) {?> checked="checked"<?php }?> value="1"> 开启
								</label>
							</div>
						</div>
					</div>		
					<div class="yf-limit-status" <?php if ($_smarty_tpl->tpl_vars['info']->value['limit_status']!=1) {?>style="display: none;"<?php }?>>
						<div class="am-form-group">
							<label for="user-intro" class="am-u-sm-3 am-form-label">时间</label>
							<div class="am-u-sm-9">
								<div class="am-btn-group">
									<label class="am-btn am-btn-xs">
										<input type="radio" name="limit_time" value="1800" <?php if ($_smarty_tpl->tpl_vars['info']->value['limit_time']==1800||$_smarty_tpl->tpl_vars['info']->value['limit_time']=='') {?>checked="checked"<?php }?>> 30分钟
									</label>
									<label class="am-btn am-btn-xs">
										<input type="radio" name="limit_time" <?php if ($_smarty_tpl->tpl_vars['info']->value['limit_time']==3600) {?> checked="checked"<?php }?> value="3600"> 1小时
									</label>
									<label class="am-btn am-btn-xs">
										<input type="radio" name="limit_time" <?php if ($_smarty_tpl->tpl_vars['info']->value['limit_time']==7200) {?> checked="checked"<?php }?> value="7200"> 2小时
									</label>
								</div>
							</div>
						</div>	
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label">限制次数</label>
							<div class="am-u-sm-9">
								<input type="text" name="limit_count" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['limit_count'];?>
" placeholder="请输入限制次数">
							</div>
						</div>
					</div>		
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['id'];?>
">
							<button type="button" class="am-btn am-btn-primary hy-js-submit">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<script type="text/javascript">
			$(function(){
				$('input[name=count_type]').click(function(){
					var val = $(this).val();
					if(val > 0)
					{
						$('.yf-game-count').show();
					}
					else
					{
						$('.yf-game-count').hide();
					}
				});
				
				$('input[name=is_share]').click(function(){
					var val = $(this).val();
					if(val > 0)
					{
						$('.yf-share-type').show();
					}
					else
					{
						$('.yf-share-type').hide();
					}
				});
				
				$('input[name=limit_status]').click(function(){
					var val = $(this).val();
					if(val > 0)
					{
						$('.yf-limit-status').show();
					}
					else
					{
						$('.yf-limit-status').hide();
					}
				});
			});
			hy_submit('index.php?g=admin&m=gift&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
		</script>
	</body>

</html><?php }} ?>
